-- GENERATED SPELL FOR [Tormar Frostgut] --


function spell0_29626(pUnit, Event) --@Tusk Strike,n/a--
pUnit:FullCastSpellOnTarget(50410,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_29626', 592, 1)
end

function spell1_29626(pUnit, Event) --@War Stomp,Self--
pUnit:FullCastSpellOnTarget(11876,pUnit)
pUnit:RegisterEvent('Sorts_29626', 5315, 1)
end

function Sorts_29626(pUnit, Event)
local choix_sorts_29626 = math.random(0, 1)
if choix_sorts_29626 == 0 then
pUnit:RegisterEvent('spell0_29626', 1, 1)
end
if choix_sorts_29626 == 1 then
pUnit:RegisterEvent('spell1_29626', 1, 1)
end
end

function mob29626_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_29626', math.random(1500, 3000), 1)
end

function mob29626_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob29626_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob29626_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(29626, 1, 'mob29626_Action')
RegisterUnitEvent(29626, 2, 'mob29626_Leave')
RegisterUnitEvent(29626, 3, 'mob29626_Kill')
RegisterUnitEvent(29626, 4, 'mob29626_Die')
